﻿namespace ETModel {
    /// <summary>
    /// 标识当前类是一个邮筒处理器,类需要继承IMailboxHandler
    /// </summary>
	public class MailboxHandlerAttribute : BaseAttribute {
        public AppType Type { get; }

        public string MailboxType { get; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="appType">在哪个服务器中跑的</param>
        /// <param name="mailboxType">相同类型的邮筒处理器需要全局唯一</param>
        public MailboxHandlerAttribute(AppType appType, string mailboxType) {
            this.Type = appType;
            this.MailboxType = mailboxType;
        }
    }
}